//
//  RectangleCell.m
//  BeautyClother
//
//  Created by dllo on 15/9/17.
//  Copyright (c) 2015年 宋爽. All rights reserved.
//

#import "RectangleCell.h"

@implementation RectangleCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.image1 = [[UIImageView alloc] init];
        [self.contentView addSubview:_image1];
        [_image1 release];
        
        self.image2 = [[UIImageView alloc] init];
        [self.contentView addSubview:_image2];
        [_image2 release];
        
        self.image3 = [[UIImageView alloc] init];
        [self.contentView addSubview:_image3];
        [_image3 release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat offwidth = [UIScreen mainScreen].bounds.size.width / 375;
    
    CGFloat offheight = [UIScreen mainScreen].bounds.size.height / 667;
    
    self.image1.frame = CGRectMake(10, 10, 110 * offwidth, 80 * offheight);
    
    self.image2.frame = CGRectMake(120 * offwidth + 10, 10, 110 * offwidth, 80 * offheight);
    
    self.image3.frame = CGRectMake(120 * 2 * offwidth + 10, 10, 110 * offwidth, 80 * offheight);
    
    
    
    
        
       }

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
